package com.geek.java.ch03.Fly;

public class Test {
    public static void makeFly(CanFly flyable) {
        flyable.fly();
    }

    public static void main(String[] args) {
        // 创建飞机对象和鸟对象
        Plane plane = new Plane();
        Bird bird = new Bird();

        // 调用 makeFly 方法，让飞机和鸟起飞
        makeFly(plane);
        makeFly(bird);
    }
}
